<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
    .d1{
        width: 100px;
        height: 100px;
        background-color: red;
        /* 相对于原来的位置的移动，原来的位置依然不允许其他元素占用 */
        position: relative;
        top: 20px;
        left: 20px;
    }
        </style>
</head>
<body>
    <div class="d1"></div>
</body>
</html>